<?php

declare(strict_types=1);

namespace App\Fastapp\Model;

use Mine\MineModel;

/**
 * @property int $id 主键
 * @property \Carbon\Carbon $created_at 创建时间
 * @property \Carbon\Carbon $updated_at 更新时间
 * @property string $version 版本号
 * @property string $date 更新日期
 * @property array $content 更新内容
 * @property string $url 下载地址
 * @property string $app_name
 */
class FastappVersion extends MineModel
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'fastapp_version';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'created_at', 'updated_at', 'version', 'date', 'content', 'url', 'app_name'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'content' => 'array'];
}
